
<table style='width: 100%'>
<tr>

<td valign='top' width='25%' align="center">
<div class="content" style='height: 150px'>
<form action="../exec/stanice.php?action=new&type=spremnik" method="POST">
	<table class='tableResult'>
	<tr><th scope='col' class='spec' width='100px'> Spremnici </th></tr>
	<tr><td> <input type="text" name="spremnikNaziv" id="spremnikNaziv" placeholder="Spremnik"></td></tr>
	<tr><td> <input type="text" name="spremnikTip" id="spremnikTip" placeholder="Tip spremnika (80, 140, 180)"></td></tr>
	<tr><th scope='col' class='spec'>
		<input type="submit" value='Dodaj'>
	</th></tr>
	</table>
</form>
</div>

</td>
<td valign='top' width='25%' align="center">
<div class="content" style='height: 150px'>
<form action="../exec/stanice.php?action=new&type=izotip" method="POST">
	<table class='tableResult'>
	<tr><th scope='col' class='spec'> Izotipi </th></tr>
	<tr><td> <input type="text" name="izotipNaziv" id="izotipNaziv" placeholder="Izotip"></td></tr>
	<tr><th scope='col' class='spec'>
		<input type="submit" value='Dodaj'>
	</th></tr>
	</table>
</form>
</div>
</td>

<td valign='top' width='25%' align="center">
<div class="content" style='height: 150px'>
<form action="../exec/stanice.php?action=new&type=podrijetlo" method="POST">
	<table class='tableResult'>
	<tr><th scope='col' class='spec' width='100px'> Podrijetla </th></tr>
	<tr><td> <input type="text" name="podrijetloNaziv" id="podrijetloNaziv" placeholder="Podrijetlo"></td></tr>
	<tr><th scope='col' class='spec'>
		<input type="submit" value='Dodaj'>
	</th></tr>
	</table>
</form>
</div>
</td>

<td valign='top' width='25%' align="center">
<div class="content" style='height: 150px'>
<form action="../exec/stanice.php?action=new&type=medij" method="POST">
	<table class='tableResult'>
	<tr><th scope='col' class='spec'> Mediji </th></tr>
	<tr><td> <input type="text" name="medijNaziv" id="medijNaziv" placeholder="Medij"></td></tr>
	<tr><th scope='col' class='spec'>
		<input type="submit" value='Dodaj'>
	</th></tr>
	</table>
</form>
</div>

</td>

</tr>
<tr>

<td valign='top'>
<div class="content">
<table class='tableResult' width="100%">
<?php 
	$query = "SELECT * FROM spremnik;";
	$result = myQuery($query);
	
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
		if (strlen($row['naziv']) != 0)
		print("<tr><td align='center'> " . $row['naziv'] . " (" . $row['tip'] . ")</td>
			<td width='16px'> <a title='Pobriši spremnik' href='exec/stanice.php?action=delete&type=spremnik&id=" . $row['id'] . "'> 
					<img src='/images/delete.png' width='16px' height='16px'> </td>");
	}
?>
</table>
</div> <br>
</td>

<td valign='top'>
<div class="content">
<table class='tableResult' width="100%">
<?php 
	$query = "SELECT * FROM izotip;";
	$result = myQuery($query);
	
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
		if (strlen($row['naziv']) != 0)
		print("<tr><td align='center'> " .
			$row['naziv'] . "</td>
			<td width='16px'> <a title='Pobriši izotip' href='exec/stanice.php?action=delete&type=izotip&id=" . $row['id'] . "'> 
					<img src='/images/delete.png' width='16px' height='16px'> </td>");
	}
?>
</table>
</div> <br>
</td>

<td valign='top'>
<div class="content">
<table class='tableResult' width="100%">
<?php 
	$query = "SELECT * FROM podrijetlo;";
	$result = myQuery($query);
	
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
		if (strlen($row['naziv']) != 0)
		print("<tr><td align='center'> " . $row['naziv'] . "</td>
		<td width='16px'> <a title='Pobriši podrijetlo' href='exec/stanice.php?action=delete&type=podrijetlo&id=" . $row['id'] . "'> 
					<img src='/images/delete.png' width='16px' height='16px'> </td>");
	}
?>
</table>
</div> <br>
</td>

<td valign='top'>
<div class="content">
<table class='tableResult' width="100%">
<?php 
	$query = "SELECT * FROM medij;";
	$result = myQuery($query);
	
	while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
		if (strlen($row['naziv']) != 0)
		print("<tr><td align='center'> " . $row['naziv'] . "</td>
		<td width='16px'> <a title='Pobriši medij' href='exec/stanice.php?action=delete&type=medij&id=" . $row['id'] . "'> 
					<img src='/images/delete.png' width='16px' height='16px'> </td>");
	}
?>
</table>
</div> <br>
</td>

</tr>
</table>
